package com.chujian.framework.core.base;

import com.chujian.framework.core.tsdata.Result;
import com.chujian.framework.core.tsdata.Results;

public class TsDataController {

    public Result<?> okRs(Object obj) {
        return Results.ok(obj);
    }

    public Result<?> okRs() {
        return Results.ok();
    }

    public Result<?> errRs(String msg) {
        return Results.err(msg);
    }

    public Result<?> errRs(Integer code, String msg) {
        return Results.err(code, msg);
    }


}
